<include file="Member:leftmenu" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/tree.css" />
<style>
	a {
		color: #000
	}

	a,
	a:link,
	a:hover {
		text-decoration: none
	}

	.container,
	.navbar-static-top .container,
	.navbar-fixed-top .container,
	.navbar-fixed-bottom .container {
		width: auto;
	}
</style>
<script type="text/javascript">
	$(function () {
		$('.tree li:has(ul)').addClass('parent_li').find(' > span').attr('title', 'Collapse this branch');
		$('.tree li.parent_li > span').on('click', function (e) {
			var children = $(this).parent('li.parent_li').find(' > ul > li');
			if (children.is(":visible")) {
				children.hide('fast');
				$(this).attr('title', 'Expand this branch').find(' > i').addClass('icon-plus-sign').removeClass('icon-minus-sign');
			} else {
				children.show('fast');
				$(this).attr('title', 'Collapse this branch').find(' > i').addClass('icon-minus-sign').removeClass('icon-plus-sign');
			}
			e.stopPropagation();
		});
	});

</script>


<div class="content-right fl">
	<form action="/admin/member/memberweb" id="form" method="get"><br>
		<div class="formitems">
			<label class="fi-name"><span class="colorRed">*</span>用户ID：</label>
			<div class="form-controls">
				<input type="text" id="uid" class="input xlarge" name="uid" value="<?=$memberinfo['uid']?>" autocomplete="off">
			</div>
		</div>


		<div class="mgl120">
			<button class="btn btn-primary " type="submit">查询</button>
		</div>
		<?php if($html){ ?>
		<div style="float:right">
			<a class="fi-help-text btn btn-primary" id="showall">展开</a>
			<a class="fi-help-text btn btn-primary" id="hideall">收回</a>
		</div>
		<?php } ?>
	</form>


	<?php if($html){ ?>
	<div class="tree well">
		{$html}
	</div>
	<?php } ?>


</div>

<script>
	$(document).ready(function () {


	});
	$("#hideall").on('click', function () {
		$('.tree li.parent_li > span').parent('li.parent_li').find(' > ul > li').hide('fast');
	});
	$("#showall").on('click', function () {
		$('.tree li.parent_li > span').parent('li.parent_li').find(' > ul > li').show('fast');
	})

</script>